API Documentation
ViewportManager.h
1 // ViewportManager.h
3 //
5 
6 namespace nkGraphics
7 {
13  class ViewportManager final : public nkCommon::SingletonClass<ViewportManager>
14  {
15  public :
16 
21 
22  // Getters
27 
28  // Setters
35  void setActiveViewport (Viewport* value) ;
36 
59  Viewport* getByIndex (unsigned int index) ;
66  void rename (const nkMemory::StringView& currentName, const nkMemory::StringView& newName) ;
72  void erase (const nkMemory::StringView& name) ;
73  } ;
74 }
nkGraphics::ViewportManager::erase
void erase(const nkMemory::StringView &name)
nkGraphics::ViewportManager::getByIndex
Viewport * getByIndex(unsigned int index)
nkGraphics::ViewportManager::rename
void rename(const nkMemory::StringView &currentName, const nkMemory::StringView &newName)
nkGraphics::Viewport
Holds all the information needed about a viewport.
Definition: Viewport.h:12
nkGraphics::ViewportManager::get
Viewport * get(const nkMemory::StringView &name)
nkGraphics::ViewportManager::createOrRetrieve
Viewport * createOrRetrieve(const nkMemory::StringView &name)
nkGraphics::ViewportManager::setActiveViewport
void setActiveViewport(Viewport *value)
nkGraphics::ViewportManager
Manages the viewports available in the component.
Definition: ViewportManager.h:14
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::ViewportManager::getActiveViewport
Viewport * getActiveViewport() const
nkGraphics::ViewportManager::~ViewportManager
~ViewportManager()